package org.example.ch01;

import org.example.ch01.entity.User;
import org.example.ch01.service.UserService;

import java.util.HashMap;
import java.util.Map;

/**
 * ClassName: Main
 * Description:
 *
 * @Author zjl
 * @Create 2025/04/22 10:50
 * @Version 1.0
 */
public class Main {

    public static void main(String[] args) {
//        User user = new User();
//        user.setName("USER1");
//        user.setAge(18);
        UserService service = new UserService();
//        service.saveUser(user);

        Map<String, Object> params = new HashMap<>();
        params.put("name", "USER2");
        params.put("age", 20);
        service.saveUser2(params);
    }
}
